Add Services to Product
PATCH /api/v1/products/{productId}/tenants/{tenantId}/configs
Descriptionβ
Add services to an existing product within a tenantβs account.
π Authenticationβ
This endpoint requires authentication via a Bearer Token.
| Param | Value | Type |
|---|---|---|
| token | {{tenantUserAccessToken}} | string |
Path Parametersβ
These parameters must be included in the URL path.
| Name | Type | Description |
|---|---|---|
productId | string | The ID of the product to which services will be added |
tenantId | string | The ID of the tenant associated with the product |
Request Bodyβ
| Name | Type | Description |
|---|---|---|
productId | string | The ID of the product being updated |
services | array | List of service IDs to be associated with the product |
Example Requestβ
PATCH /api/v1/products/{{productId}}/tenants/{{tenantId}}/configs
Authorization: Bearer {{tenantUserAccessToken}}
Content-Type: application/json
{
"productId": "67a81ecca9a55da218c22c35",
"services": ["67a807b4a500fdac939a1e7c"]
}
Response Code: 200 - OKβ
{
"_id": "67a81ecca9a55da218c22c35",
"name": "Intelligent Granite Gloves",
"overview": "Shirt",
"requirements": ["new", "old"],
"code": "intelligent_granite_gloves",
"photo": "https://res.cloudinary.com/rensourceenergy/image/upload/v1739071179/photos/ixgqyormjfzludq8sj8y.png",
"config": {
"mobileApp": [
{
"label": "Webhook URL",
"key": "webhookUrl",
"required": true,
"value": "string",
"valueType": "string",
"formType": "input",
"_id": "67a81ecca9a55da218c22c36",
"formOptions": []
}
],
"pwaApp": [
{
"label": "Webhook URL",
"key": "webhookUrl",
"required": true,
"value": "string",
"valueType": "string",
"formType": "input",
"_id": "67a81ecca9a55da218c22c37",
"formOptions": []
}
],
"webApp": [
{
"label": "Webhook URL",
"key": "webhookUrl",
"required": true,
"value": "string",
"valueType": "string",
"formType": "input",
"_id": "67a81ecca9a55da218c22c38",
"formOptions": []
}
],
"adminApp": [
{
"label": "Webhook URL",
"key": "webhookUrl",
"required": true,
"value": "string",
"valueType": "string",
"formType": "input",
"_id": "67a81ecca9a55da218c22c39",
"formOptions": []
}
]
},
"services": ["67a807b4a500fdac939a1e7c"],
"tenant": "67a81e0478c623946a5e4a49",
"display": "PUBLIC",
"type": "TENANT",
"category": "WHITE_LABEL",
"classification": [],
"bio": {
"title": "input_firewall.rms",
"description": "If we override the capacitor, we can get to the EXE protocol through the online XML driver!"
},
"deleted": false,
"createdBy": "SYSTEM",
"deletedBy": null,
"updatedBy": null,
"createdAt": "2025-02-09T03:19:40.485Z",
"updatedAt": "2025-02-09T03:53:02.236Z",
"__v": 0
}
LANGUAGE
CURL REQUEST
curl --request PATCH \
--url /api/v1/products/{productId}/tenants/{tenantId}/configs \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!